<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>支出成功</title>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</head>
<body>
<p>支付成功：</p>
订单号：<span id="orderNo"></span></br>
价格：<span id="amount"></span></br>
</body>
<script type="text/javascript">
    $(function (){

        var orderNo = getUrlParam("orderNo");
        var amount = getUrlParam("amount");

        $('#orderNo').html(orderNo);
        $('#amount').html(amount);

    })

    function getUrlParam(name) {
        var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
        var r = window.location.search.substr(1).match(reg);  //匹配目标参数
        if (r!=null) return decodeURI(r[2]); return null; //返回参数值
    }

</script>
</html>